//app.js
import './libs/polyfill.js'
global.Promise && (Promise = global.Promise)
const env = 'dev' // 接口环境
App({
  globalData: {
    WX_ENV: env,
    DE_BUG: true,
    userInfo: null,
    Token: ''
  },
  initCustom () {
    wx.getSystemInfo({
      success: e => {
        this.globalData.StatusBar = e.statusBarHeight;
        let custom = wx.getMenuButtonBoundingClientRect();
        this.globalData.Custom = custom;
        this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
      }
    })
  },
  onLaunch: function (options) {
  },
  onShow() {
    this.initCustom()
  }
})